from django.urls import re_path
from .views import *
urlpatterns = [
    # 城区列表
    re_path(r'api/v1.0/areas$', Areas.as_view()),

    # 房源路由
    re_path(r'api/v1.0/houses$', Houses.as_view()),

    # 上传房源图片
    re_path(r'api/v1.0/houses/(?P<house_id>\d+)/images$', AddHouseImg.as_view()),

    # 首页房屋推荐
    re_path(r'api/v1.0/houses/index$', IndexHouse.as_view()),

    # 房屋详情页
    re_path(r'api/v1.0/houses/(?P<house_id>\d+)', HouseDetails.as_view()),




]